import React, { FC, useContext, useEffect } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import RootPageComponent from '@/pages/components/RootPageComponent/RootPageComponent';
import LoginTitle from './LoginTitle/LoginTitle';
import LoginForm from './LoginForm/LoginForm';

export interface IProps extends ICompProps {}
TopContainer.defaultProps = {} as Partial<IProps>;
function TopContainer(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('TopContainer', className);
    return (
        <RootView className={localClassName} style={style}>
            <LoginTitle></LoginTitle>
            <LoginForm></LoginForm>
        </RootView>
    );
}
export default React.memo(TopContainer as FC<IProps>);
const RootView = styled(View)`
    &.TopContainer {
        width: 100%;
        padding: 0 48px;
        position: fixed;
        top: 240px;
    }
`;
